package com.ssy.lingxi.system.model.response;

import com.ssy.lingxi.common.constant.basic.EnableDisableStatus;
import lombok.Getter;
import lombok.Setter;

/**
 * @author wyx
 * @version 2.0.0
 * @date 2021-11-16
 */
@Setter
@Getter
public class OnlineServicePageRes {
    /**
     * 主键ID
     */
    private Long id;

    /**
     * 客服平台
     */
    private String platformName;

    /**
     * 客服类型：1、自有 2、第三方
     */
    private Integer type;

    /**
     * 状态 1.有效 0.无效
     */
    private Integer status;

    /**
     * 是否显示修改按钮
     */
    private Boolean showUpdate;

    /**
     * 是否显示删除按钮
     */
    private Boolean showDelete;

    /**
     * 是否显示启用按钮
     */
    private Boolean showEnable;

    public OnlineServicePageRes(Long id, String platformName, Integer type, Integer status) {
        this.id = id;
        this.platformName = platformName;
        this.type = type;
        this.status = status;
        this.showUpdate = EnableDisableStatus.DISABLE.getCode().equals(status);
        this.showDelete = EnableDisableStatus.DISABLE.getCode().equals(status);
        this.showEnable = EnableDisableStatus.ENABLE.getCode().equals(status);
    }
}
